package icu.qx.index.service.impl;

import icu.qx.index.domain.CommonData;
import icu.qx.index.domain.TaskNum;
import icu.qx.index.mapper.ProStatisticMapper;
import icu.qx.index.service.IProStatisticService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProStatisticServiceImpl implements IProStatisticService {

    @Autowired
    private ProStatisticMapper proStatisticMapper;

    @Override
    public List<CommonData> selectTotalNum() {
        return proStatisticMapper.selectTotalNum();
    }

    @Override
    public List<CommonData> selectDrawbackRange() {
        return proStatisticMapper.selectDrawbackRange();
    }

    @Override
    public List<CommonData> selectBadProcedure() {
        return proStatisticMapper.selectBadProcedure();
    }

    @Override
    public List<TaskNum> totalWeekTasks() {
        return proStatisticMapper.totalWeekTasks();
    }

    @Override
    public List<TaskNum> totalMonthTasks() {
        return proStatisticMapper.totalMonthTasks();
    }

    @Override
    public List<TaskNum> totalYearTasks() {
        return proStatisticMapper.totalYearTasks();
    }
}
